.customModalWrapper {
  :global {
    .adm-center-popup-wrap {
      max-width: 420px !important;
      width: 90% !important;
    }
  }
}

.customModal {
  padding: 16px;
  background: #fff;
  border-radius: 8px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  .title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
  }

  .closeButton {
    padding: 4px;
    color: var(--theme-text-muted);
  }
}

.modalContent {
  :global {
    .adm-tabs-header {
      border-bottom: 1px solid var(--theme-border-primary);
    }
    
    .adm-tabs-tab {
      font-size: 16px;
      color: var(--theme-text-muted);
      padding: 12px 16px;
      
      &.adm-tabs-tab-active {
        color: var(--adm-color-primary);
        font-weight: 500;
      }
    }
    
    .adm-radio {
      --icon-size: 20px;
      --font-size: 16px;
      --gap: 8px;
      
      &.adm-radio-checked {
        --icon-color: var(--adm-color-primary);
      }
    }
  }
}

.model_list {
  padding: 0 4px;
  margin: 0 -4px;
  .model_list_desc {
    font-size: 12px;
    color: var(--theme-text-muted);
    margin-bottom: 12px;
  }
}

.model_item {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--theme-border-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #fff;
  
  &:last-child {
    margin-bottom: 0;
  }
  
  &:hover {
    border-color: var(--adm-color-primary);
    background-color: rgba(var(--adm-color-primary-rgb), 0.05);
  }
  
  :global {
    .adm-radio-content {
      width: 100%;
    }
  }
}

.card_enabled {
  filter: grayscale(1);
}

.model_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.model_name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.model_desc {
  font-size: 13px;
  color: var(--theme-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  
  &::before {
    content: '🔑';
    font-size: 14px;
  }
}

.modalFooter {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-border-primary);
}

.cancelButton {
  color: var(--theme-text-muted);
  font-size: 14px;
  height: 32px;
  padding: 0 12px;
}

.confirmButton {
  font-size: 14px;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
} 